package com.fantastic.web.controller.app;

import com.fantastic.common.exception.enums.RespStatusInfo;
import com.fantastic.common.result.ResultData;
import com.fantastic.service.ysh.IntegralVoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author yang
 * @date 2024-06-10
 * 积分商城请求控制器
 */
@RestController
@RequestMapping("/app")
public class IntegralController {
    @Resource
    private IntegralVoService integralVoService;

    /**
     * 获取所有积分商城商品
     * @return
     */
    @GetMapping("/listIntegralVoApp")
    public ResultData listIntegralVoApp(){
        return new ResultData(RespStatusInfo.OK, integralVoService.listIntegralVo());
    }
}
